Put the following file into a bat file and run it as an administrator. @ Echo off Setlocal enabledelayedexpansionrem ' /* ========== Obtain the IP address of the Local Machine (LAN) =========== */ Echo " Please wait " For /F " Tokens = 2 delims =: " % B In ( ' Ipconfig ^ | find/I "ip" ' ) Do Set fsip = % B Echo % Fsip % Set CT = % Computername % Echo % CT % Pause Note that the variable % host
First, the principleThe number of submissions is sure to go to the database to write the number of this data, such as user login, when the user is wrong to forget the database write error 1, and error time, and then error write 2, when full such as 5 times prompted not to allow the landing, please try again tomorrow, and then use DateDiff to calculate the error and now () time, If it is greater than 24, let him try again.IP, especially to the IP break is relatively simple,First say to the IP seg
client access IP, in order to explain the convenience, with IP192.168.6.2
Now to open the IP field 192.168.*.*, give a relatively easy to read code it:
Url=split (IP, ".") ' Here the IP for the client ipfsip= "192.168.*.*" ' allowed segments, can be removed from the database, or so define Fip=split (Fsip, ".") If FIP (0) =url (0) and FIP (1) =url (1) thenresponse.write "Your IP is blocked" Else Response.Write "can pass" end if
In fact, the prohibi
client access IP, in order to explain the convenience, with IP192.168.6.2
Now to open the IP field 192.168.*.*, give a relatively easy to read code it:
Url=split (IP, ".") ' Here the IP for the client ipfsip= "192.168.*.*" ' allowed segments, can be removed from the database, or so define Fip=split (Fsip, ".") If FIP (0) =url (0) and FIP (1) =url (1) thenresponse.write "Your IP is blocked" Else Response.Write "can pass" end if
In fact, the prohibit
client access IP, in order to explain the convenience, with IP192.168.6.2
Now to open the IP field 192.168.*.*, give a relatively easy to read code it:
Url=split (IP, ".") ' Here the IP for the client ipfsip= "192.168.*.*" ' allowed segments, can be removed from the database, or so define Fip=split (Fsip, ".") If FIP (0) =url (0) and FIP (1) =url (1) thenresponse.write "Your IP is blocked" Else Response.Write "can pass" end if
In fact, the prohibiti
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.